package com.longcai.feign.client;

import com.alibaba.fastjson.JSONObject;
import com.longcai.bean.ApiResult;
import com.longcai.constants.ServiceNameConstants;
import com.longcai.feign.factory.OrderFeignClientFallbackFactory;
import com.longcai.page.table.PageTableResponse;
import org.apache.http.HttpRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author zhaojie
 * @Title: RemoteWebApi
 * @ProjectName CLYJ
 * @Description: TODO
 * @date 2019/2/1811:56
 */
@FeignClient(value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = OrderFeignClientFallbackFactory.class)
public interface OrderFeignClient {
    /**
     * 查询商铺订单列表
     * @param map
     * @return
     */
    @RequestMapping(value = "/goodsOrderDetails/selectOrderList",method=RequestMethod.GET)
    PageTableResponse selectOrderList(@RequestBody Map<String,Object> map);

    @RequestMapping(value = "/goodsOrderDetails/selectOrderByTradeNo",method=RequestMethod.GET)
    ApiResult<?> selectOrderByTradeNo(@RequestParam(value = "tradeNo") String tradeNo);

    @RequestMapping(value = "/goodsOrderDetails/updateOrderInfo",method=RequestMethod.GET)
    ApiResult<?> updateOrderInfo(@RequestBody Map<String,Object> map);

}
